﻿<%@ Page Title="" Language="C#" MasterPageFile="~/TP3Master.master" AutoEventWireup="true" CodeFile="frmRegistroRepresentante.aspx.cs" Inherits="Espectaculos_Configuracion_frmRegistroRepresentante" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
<table  class="tablaForm" align="center"> 
<tr>
    
    <td align="left" class="filaCab">

        <asp:Label ID="lblTituloProg" runat="server" Text="Registro de Representante" Font-Size="Larger"></asp:Label>
    </td>
</tr>
<tr>
    <td align="center">
        
        <table>
         <tr>
                <td align="center" colspan="3">
                    <asp:Label ID="lblMensaje" runat="server"></asp:Label>
                </td>
            </tr>
           
            <tr>
                <td class="columnaDesc" >Razón Social :</td>
                <td class="columnaCtrl">  
                    <asp:TextBox ID="txtRazonSocial" runat="server" Width="300px" MaxLength="50"></asp:TextBox>  </td>
                <td class="columnaCtrl">    
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="txtRazonSocial" Display="Static" 
                        ErrorMessage="Ingrese la razón social." ValidationGroup="grabar" 
                        ForeColor="Red">*</asp:RequiredFieldValidator>
                    <asp:ValidatorCalloutExtender ID="RequiredFieldValidator1_ValidatorCalloutExtender" 
                        runat="server" Enabled="True" TargetControlID="RequiredFieldValidator1">
                    </asp:ValidatorCalloutExtender>
                </td>
            </tr>
             <tr>
                <td class="columnaDesc" >RUC :</td>
                <td class="columnaCtrl">  
                    <asp:TextBox ID="txtRUC" runat="server" MaxLength="50"></asp:TextBox>  
                    <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" 
                        runat="server" Enabled="True" FilterType="Custom, Numbers" 
                        TargetControlID="txtRUC" ValidChars="/ -">
                    </asp:FilteredTextBoxExtender>
                     <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                        ControlToValidate="txtRUC" Display="Static" 
                        ErrorMessage="Ingrese el RUC." ValidationGroup="grabar" 
                        ForeColor="Red">*</asp:RequiredFieldValidator>
                    <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" 
                        runat="server" Enabled="True" TargetControlID="RequiredFieldValidator2">
                    </asp:ValidatorCalloutExtender>
                 </td>
                <td>    </td>
            </tr>
             <tr>
                <td class="columnaDesc" >Correo</td>
                <td class="columnaCtrl">  
                    <asp:TextBox ID="txtCorreo" runat="server" Width="200px" MaxLength="50"></asp:TextBox>  
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                        ControlToValidate="txtCorreo" Display="Static" 
                        ErrorMessage="Ingrese un correo válido." ForeColor="Red" 
                        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                        ValidationGroup="grabar">*</asp:RegularExpressionValidator>
                    <asp:ValidatorCalloutExtender ID="RegularExpressionValidator1_ValidatorCalloutExtender" 
                        runat="server" Enabled="True" TargetControlID="RegularExpressionValidator1">
                    </asp:ValidatorCalloutExtender>
                 </td>
                <td>    </td>
            </tr>
             <tr>
                <td class="columnaDesc" >Dirección :</td>
                <td class="columnaCtrl">  
                    <asp:TextBox ID="txtDireccion" runat="server" Width="200px" MaxLength="50"></asp:TextBox>  </td>
                <td>    </td>
            </tr>
             <tr>
                <td class="columnaDesc" >Teléfono :</td>
                <td class="columnaCtrl">  
                    <asp:TextBox ID="txtTelefono" runat="server" MaxLength="50"></asp:TextBox>  
                    <asp:FilteredTextBoxExtender ID="txtTelefono_FilteredTextBoxExtender" 
                        runat="server" Enabled="True" FilterType="Custom, Numbers" 
                        TargetControlID="txtTelefono" ValidChars="/ -">
                    </asp:FilteredTextBoxExtender>
                 </td>
                <td>    </td>
            </tr>
             <tr>
                <td class="columnaDesc" valign="top" >Observación :</td>
                <td class="columnaCtrl">  
                    <asp:TextBox ID="txtobservacion" runat="server" Width="300" Rows="3" 
                        TextMode="MultiLine" MaxLength="50"></asp:TextBox>  </td>
                <td>    &nbsp;</td>
            </tr>
             <tr>
                <td class="columnaDesc" >Activo :</td>
                <td class="columnaCtrl">  
                    <asp:CheckBox ID="chkActivo" runat="server" />
                 </td>
                <td>    &nbsp;</td>
            </tr>

            
            <tr>
                <td></td>
                <td class="columnaDesc">
                    <asp:Button ID="btnGrabar" runat="server" Text="Grabar" 
                        onclick="btnGrabar_Click" ValidationGroup="grabar" /></td>
                <td class="columnaCtrl"><asp:Button ID="btnCancelar" runat="server" Text="Cancelar" 
                        onclick="btnCancelar_Click" /></td>
            </tr>
        </table>
                <asp:HiddenField ID="hdIdRepresentante" runat="server" Value="0" />
    </td>
    
</tr>    
</table>

</asp:Content>

